package com.stone.message.adapter.domain.event;


import org.springframework.context.ApplicationEvent;

/**
 * 消息事件
 *
 * @author Mr_wenpan@163.com 2021/6/28 11:31 上午
 */
public class MessageEvent<T> extends ApplicationEvent {
    private static final long serialVersionUID = 5165097550163084120L;

    /**
     * 队列名称
     */
    private String queue;

    /**
     * 事件内容
     */
    private T content;

    public MessageEvent(Object source) {
        super(source);
    }

    public String getQueue() {
        return queue;
    }

    public MessageEvent<T> setQueue(String queue) {
        this.queue = queue;
        return this;
    }

    public T getContent() {
        return content;
    }

    public MessageEvent<T> setContent(T content) {
        this.content = content;
        return this;
    }
}